<?php
include ("../model/connect.php");
include ("../model/Staff/class-trainningclass.php");

$trnpid = $_POST['trnpid'];
$staffid = $_POST['staffid'];
$classname = $_POST['classname'];
$classid = $_POST['classid'];


$class = new TrainningClass();
$class->editClass($classid,$trnpid,$staffid,$classname);
mysql_close($conn);
header("location:http:/educational/staff-index.php?p=staff-list-trainning-class&trnpid={$trnpid}");


?>